//************************************************************************
//     dferrors.h
//     2009 © DigiFi Limited
//
//     This is the headerfile defines all of the errors that can be
//     outputted from this library (Not really used yet)
//
//************************************************************************


#ifndef DFERRORS_HEADER
#define DFERRORS_HEADER

// connection issues
#define DFCLIENT_ECONNECTFAILED			10001
#define DFCLIENT_ETIMEOUT				10002
#define DFCLIENT_ENOMEM					10003

void dferrors_register_errorcallback(void (*callback)(int, char*));

void dferrors_register_debugcallback(void (*callback)(char*));

char* dferrors_translateerror(int error_num);

void dferrors_printerror(int num, char* message, ...);
void dferrors_printdebug(char* message, ...);


#endif